package com.zzt.questionbankquestion.repository;

import com.zzt.questionbankquestion.bean.QuestionTypeMode;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.PagingAndSortingRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface QuestionTypeModeRepository extends PagingAndSortingRepository< QuestionTypeMode,Long > , JpaSpecificationExecutor<QuestionTypeMode> {
    public List<QuestionTypeMode> findByQuestionTypeId(Long questionTypeId);
    public Boolean deleteByQuestionTypeId(Long questionTypeId);
}
